'use strict';

angular.module('app')
	.controller('aboutUsController', [ '$rootScope', '$scope', '$http', '$state',
	                                function($rootScope, $scope, $http, $state) {
		$scope.title = '关于我们';
        $scope.param = { };

        $scope.loading = false;
		$scope.search = function () {
	       $scope.loading = true;
			$.ajax({
				url : $scope.app.project_name+'/aboutus/read/list',
			}).then(function(result) {
		        $scope.loading = false;
				if (result.httpCode == 200) {
					$scope.pageInfo = result.data;
				} else {
					$scope.msg = result.msg;
				}
				$scope.$apply();
			});
		}
		$scope.search();
} ]);